package xyz.leohan.mymvpdemo.module;

import dagger.Module;
import dagger.Provides;
import xyz.leohan.mymvpdemo.LoginActivity;
import xyz.leohan.mymvpdemo.contract.LoginContract;

/**
 * Created by leo on 2017/5/16.
 */
@Module
public class LoginActivityModule {
    LoginActivity mLoginActivity;

    public LoginActivityModule(LoginActivity loginActivity) {
        this.mLoginActivity = loginActivity;
    }

    @Provides
    LoginActivity provideLoginActivity() {
        return mLoginActivity;
    }

    @Provides
    LoginContract.View provideLoginView() {
        return mLoginActivity;
    }

}
